<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>DrawImage</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">DrawImage()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>DrawImage</b></font>(ImageID, x, y [, Width, Height])    </blockquote>

</blockquote>
<b>概要</b><br><blockquote>

Draws an image to the current drawing output. 使用 <a href="drawingmode.html">DrawingMode()</a>函数设置填充模式。开始绘制前使用 <a href="startdrawing.html">StartDrawing()</a>设置当前输出。 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>ImageID</i></td>
<td width="90%"> 
用来绘制的图像ID。This value can be obtained using the <a href="../image/imageid.html">ImageID()</a> function from the image library. 

</td></tr>
<tr><td><i>x, y</i></td>
<td> 
绘制图片的位置，即左上角坐标位置。 

</td></tr>
<tr><td><i>Width, Height (optional)</i></td>
<td> 
将要绘制图像的大小. 如果不指定这些参数绘制图像则会使用其原始尺寸 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>备注</b></p><blockquote>



The image will be alpha-blended if the current <a href="drawingmode.html">DrawingMode()</a> specifies one of the 
alpha-blending flags, otherwise the image is just copied to the output. To draw an image using 
alpha-blending in any case, use the <a href="drawalphaimage.html">DrawAlphaImage()</a> command. 

 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="drawalphaimage.html">DrawAlphaImage()</a>, <a href="../image/imageid.html">ImageID()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=drawalphaimage.html>DrawAlphaImage()</a> - <a href="index.html">2DDrawing 目录</a> - <a href="drawrotatedtext.html">DrawRotatedText()</a> -&gt;<br><br>

</body></html>